          <?php $errorCategory = Yii::app()->user->hasFlash('errorCategory') ? unserialize(Yii::app()->user->getFlash('errorCategory')) : null ?>
          <!-- START OF MAINCOL -->
          <div class="MainCol CategoriesPage">

              <h1 class="left">编辑心理测试分类</h1>
              <div class="right">
              </div>
              <br class="clear" />
              
              <span class="NormalFont SmallFont">
                  <?= CHtml::image(Yii::app()->baseUrl.'/images/home_icon.gif', '主页'); ?> > 心理测试管理 > 编辑心理测试分类
               </span><br /><br />
              
              <?php if(Yii::app()->user->hasFlash('successMessage')) : ?>
              <div class="SuccessfulBox Smallbox">
                <span class="Successful"> <?php echo Yii::app()->user->getFlash('successMessage'); ?></span>
              </div>
              <?php endif ?>
              
              <ul class="Lists Smallbox">
                  <li class="Yellow_bg">
                        <?php echo CHtml::form(array('/admin/psytest/updatecategory')) ?>
                        <?php echo CHtml::activeHiddenfield($category, 'psyTestCategoryId') ?>
                        <b class="BigFont">编辑心理测试分类</b><br /><br />
                        <?php if($errorCategory !== null) : ?>
                        <?php echo CHtml::errorSummary($errorCategory); ?>
                        <?php endif ?>
                        <div class="Smallbox">
                            <label>名称<span class="Red">*</span></label><?php echo CHtml::activeTextfield($category, 'categoryName', array('class' => 'TxtInput')) ?>
                        </div>

                        <div class="Smallbox">
                            <label>排序<span class="Red">*</span></label><?php echo CHtml::activeTextfield($category, 'categoryOrder', array('class' => 'TxtInput')) ?>
                        </div>

                        <div class="Smallbox">
                            <label>测试数量</label><?php echo $category->psyTestCount ?>
                        </div>

                        <div class="Dotted Midbox"><!-- DON'T DELETE --></div><br class="clear" />

                        <?php echo CHtml::submitButton('提交') ?> 或者 <a href="<?php echo CHtml::normalizeUrl(array('/admin/psytest/editcategories')) ?>">返回</a>

                        <?php echo CHtml::endForm() ?>

                        <br class="clear" />

                </li>
              </ul>
              
        </div>
          <!-- END OF MAINCOL -->
